#import <UIKit/UIKit.h>
#define kProfileViewHeight 125     // ProfileView的高度

@protocol protocolProfileViewDelegate <NSObject>
@optional

-(void)protocolnikeNameLabel:(SEGLabel*)sender;
-(void)protocolplaceLabel:(SEGLabel*)sender;
-(void)protocoldescLabel:(SEGLabel*)sender;
-(void)protocolClick;

@end

@interface SEGProfileViewModel : NSObject
@property (nonatomic, copy) NSString *ico; // 头像地址
@property (nonatomic, copy) NSString *sex; // 性别
@property (nonatomic, copy) NSString *nickname; // 昵称
@property (nonatomic, copy) NSString *communityName; // 小区名称
@property (nonatomic, copy) NSString *authType; // 权限  0未认证，1认证，2认证服务者，3官方
@property (nonatomic, copy) NSString *level; // 等级
@property (nonatomic, copy) NSString *desc; // 个人资料
@end

@interface SEGProfileViewLayout : NSObject
@property (nonatomic, assign) CGFloat totalHeight;//控件总高度
@property (nonatomic, strong)SEGProfileViewModel *data;
- (instancetype)initWithData:(SEGProfileViewModel *)data;
-(void)segProfileViewLayout;

@property (nonatomic, assign) CGFloat nikeNameLabelHeight;//nikeNameLabel 高度
@property (nonatomic, strong) SEGTextLayout *nikeNameLabelTextLayout;//nikeNameLabel 富文本布局

@property (nonatomic, assign) CGFloat placeLabelHeight;//placeLabel 高度
@property (nonatomic, strong) SEGTextLayout *placeLabelTextLayout;//placeLabel 富文本布局

@property (nonatomic, assign) CGFloat descLabelHeight;//descLabel 高度
@property (nonatomic, strong) SEGTextLayout *descLabelTextLayout;//descLabel 富文本布局

@end

@interface SEGProfileView : UIView
@property (nonatomic, strong)SEGProfileViewLayout *layout;
- (void)setWithLayout:(SEGProfileViewLayout *)layout;

@property (nonatomic, strong) UIImageView *headImageView; // 头像
@property (nonatomic, strong) UIImageView *sexImageView; // 性别
@property (nonatomic, strong) UIImageView *levelImageView; // 等级
@property (nonatomic, strong) UIImageView *authorImageView; // 权限
@property (nonatomic, strong) UIImageView *rightImageView; // 右指向图标

@property (nonatomic, strong) SEGLabel *nikeNameLabel; // 昵称
@property (nonatomic, strong) SEGLabel *placeLabel; // 小区
@property (nonatomic, strong) SEGLabel *descLabel; // 个人主页

@property (nonatomic, assign) id<protocolProfileViewDelegate> delegate;// 代理
@end
